<template>
  <basic-container>
    <avue-tabs :option="tabsOption" @change="handleChange"></avue-tabs>
    <template v-if="tabsType.prop === '0'">
      <scount ref="scount" />
    </template>
    <template v-if="tabsType.prop === '1'">
      <scoupon ref="scoupon"  />
    </template>
  </basic-container>
</template>

<script>
import scount from "./components/count";
import scoupon from "./components/service_coupon";
export default {
  components: {
    scount,
    scoupon
  },
  data() {
    return {
      tabsType: {},
      tabsOption: {
        column: [
          {
            label: "兑换券统计",
            prop: "0"
          },
          {
            label: "兑换券详情",
            prop: "1"
          }
        ]
      },
    };
  },
  computed: {
  },
  created() {
    this.tabsType = this.tabsOption.column[0];
  },
  methods: {
    handleChange(column) {
      this.tabsType = column;
    }
  },
};
</script>

<style scoped>
::v-deep .el-date-editor .el-range__close-icon{
  margin-right: 10px;
}
</style>